`:top
`!Modular programming`! is a `F33f`_`[software development`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Software_development]`_`f mindset that emphasizes organizing the `F33f`_`[functions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Function_(programming)]`_`f of a `F33f`_`[codebase`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Codebase]`_`f into independent modules – each providing an `F33f`_`[aspect`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Separation_of_concerns]`_`f of a `F33f`_`[computer program`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Computer_program]`_`f in its entirety without providing other aspects.
A module `F33f`_`[interface`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Interface_(computing)]`_`f expresses the elements that are provided and required by the module. The elements defined in the interface are detectable by other modules. The `F33f`_`[implementation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Implementation]`_`f contains the working code that corresponds to the elements declared in the interface. Modular programming is closely related to `F33f`_`[structured programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Structured_programming]`_`f and `F33f`_`[object-oriented programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Object-oriented_programming]`_`f, all having the same goal of facilitating construction of large software programs and systems by `F33f`_`[decomposition`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Decomposition_(computer_science)]`_`f into smaller pieces, and all originating around the 1960s. While the historic use of these terms has been inconsistent, `*modular programming`* now refers to the `F33f`_`[high-level`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=High-level_programming_language]`_`f decomposition of the code of a whole program into pieces: `*structured programming`* to the `F33f`_`[low-level`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Low-level_programming_language]`_`f code use of structured `F33f`_`[control flow`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Control_flow]`_`f, and `*object-oriented programming`* to the `*data`* use of `F33f`_`[objects`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Object_(computer_science)]`_`f, a kind of `F33f`_`[data structure`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Data_structure]`_`f.
In object-oriented programming, the use of interfaces as an architectural pattern to construct modules is known as `F33f`_`[interface-based programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Interface-based_programming]`_`f.
>>Contents
• `F0af`_`[History`#history]`_`f
• `F0af`_`[Terminology`#terminology]`_`f
• `F0af`_`[Language support`#language-support]`_`f
• `F0af`_`[Key aspects`#key-aspects]`_`f
• `F0af`_`[See also`#see-also]`_`f
• `F0af`_`[References`#references]`_`f
• `F0af`_`[External links`#external-links]`_`f
-─
>>History
Modular programming, in the form of subsystems (particularly for I/O) and software libraries, dates to early software systems, where it was used for `F33f`_`[code reuse`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Code_reuse]`_`f. Modular programming per se, with a goal of modularity, developed in the late 1960s and 1970s, as a larger-scale analog of the concept of `F33f`_`[structured programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Structured_programming]`_`f (1960s). The term "modular programming" dates at least to the National Symposium on Modular Programming, organized at the Information and Systems Institute in July 1968 by `F33f`_`[Larry Constantine`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Larry_Constantine]`_`f; other key concepts were `F33f`_`[information hiding`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Information_hiding]`_`f (1972) and `F33f`_`[separation of concerns`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Separation_of_concerns]`_`f (SoC, 1974).
Modules were not included in the original specification for `F33f`_`[ALGOL 68`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ALGOL_68]`_`f (1968), but were included as extensions in early implementations, `F33f`_`[ALGOL 68-R`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ALGOL_68-R]`_`f (1970) and `F33f`_`[ALGOL 68C`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ALGOL_68C]`_`f (1970), and later formalized.`:cite-ref-1[`F5bf`_`[1`#cite-note-1]`_`f] One of the first languages designed from the start for modular programming was the short-lived `F33f`_`[Modula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula]`_`f (1975), by `F33f`_`[Niklaus Wirth`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Niklaus_Wirth]`_`f. Another early modular language was `F33f`_`[Mesa`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mesa_(programming_language)]`_`f (1970s), by `F33f`_`[Xerox PARC`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Xerox_PARC]`_`f, and Wirth drew on Mesa as well as the original Modula in its successor, `F33f`_`[Modula-2`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula-2]`_`f (1978), which influenced later languages, particularly through its successor, `F33f`_`[Modula-3`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula-3]`_`f (1980s). Modula's use of dot-`F33f`_`[qualified names`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Qualified_name]`_`f, like `B100`F9d9M.a`f`b to refer to object `B100`F9d9a`f`b from module `B100`F9d9M`f`b, coincides with notation to access a field of a record (and similarly for attributes or methods of objects), and is now widespread, seen in `F33f`_`[C++`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C++]`_`f, `F33f`_`[C#`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_Sharp_(programming_language)]`_`f, `F33f`_`[Dart`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dart_(programming_language)]`_`f, `F33f`_`[Go`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Go_(programming_language)]`_`f, `F33f`_`[Java`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_(programming_language)]`_`f, `F33f`_`[OCaml`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=OCaml]`_`f, and `F33f`_`[Python`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Python_(programming_language)]`_`f, among others. Modular programming became widespread from the 1980s: the original `F33f`_`[Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Pascal_(programming_language)]`_`f language (1970) did not include modules, but later versions, notably `F33f`_`[UCSD Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=UCSD_Pascal]`_`f (1978) and `F33f`_`[Turbo Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Turbo_Pascal]`_`f (1983) included them in the form of "units", as did the Pascal-influenced `F33f`_`[Ada`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ada_(programming_language)]`_`f (1980). The Extended Pascal ISO 10206:1990 standard kept closer to Modula2 in its modular support. `F33f`_`[Standard ML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Standard_ML]`_`f (1984)`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f] has one of the most complete module systems, including `F33f`_`[functors`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Standard_ML]`_`f (parameterized modules) to map between modules.
In the 1980s and 1990s, modular programming was overshadowed by and often conflated with `F33f`_`[object-oriented programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Object-oriented_programming]`_`f, particularly due to the popularity of C++ and Java. For example, the C family of languages had support for `F33f`_`[objects`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Object_(computer_science)]`_`f and `F33f`_`[classes`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Class_(computer_programming)]`_`f in C++ (originally `F33f`_`[C with Classes`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_with_Classes]`_`f, 1980) and Objective-C (1983), only supporting modules 30 years or more later. Java (1995) supports modules in the form of `F33f`_`[packages`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Package_manager]`_`f, though the primary unit of code organization is a class. However, Python (1991) prominently used both modules and objects from the start, using modules as the primary unit of code organization and "packages" as a larger-scale unit; and `F33f`_`[Perl 5`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Perl_5]`_`f (1994) includes support for both modules and objects, with a vast array of modules being available from `F33f`_`[CPAN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CPAN]`_`f (1993). `F33f`_`[OCaml`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=OCaml]`_`f (1996) followed ML by supporting modules and functors.
Modular programming is now widespread, and found in virtually all major languages developed since the 1990s. The relative importance of modules varies between languages, and in class-based object-oriented languages there is still overlap and confusion with classes as a unit of organization and encapsulation, but these are both well-established as distinct concepts.
>>Terminology
The term `F33f`_`[assembly`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Assembly_(CLI)]`_`f (as in `F33f`_`[.NET`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=.NET]`_`f languages like `F33f`_`[C#`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_Sharp_(programming_language)]`_`f, `F33f`_`[F#`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=F_Sharp_(programming_language)]`_`f, or `F33f`_`[Visual Basic (.NET)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Visual_Basic_(.NET)]`_`f) or `F33f`_`[package`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Package_manager]`_`f (as in `F33f`_`[Dart`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dart_(programming_language)]`_`f, `F33f`_`[Go`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Go_(programming_language)]`_`f, or `F33f`_`[Java`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_(programming_language)]`_`f) is sometimes used instead of `*module`*. In other implementations, these are distinct concepts; in `F33f`_`[Python`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Python_(programming_language)]`_`f a package is a set of modules, while in `F33f`_`[Java 9`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_9]`_`f the introduction of the `F33f`_`[new module concept`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_Module_System]`_`f (a set of packages with enhanced access control) was implemented.
Furthermore, the term "package" has other uses in software (for example .NET `F33f`_`[NuGet`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=NuGet]`_`f packages). A `F33f`_`[component`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Software_component]`_`f is a similar concept, but typically refers to a higher level; a component is a piece of a whole `F33f`_`[system`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Software_system]`_`f, while a module is a piece of an individual program. The scale of the term "module" varies significantly between languages; in Python it is very small-scale and each file is a module, while in `F33f`_`[Java 9`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_9]`_`f it is planned to be large-scale, where a module is a set of packages, which are in turn sets of files.
Other terms for modules include `*unit`*, used in `F33f`_`[Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Pascal_(programming_language)]`_`f dialects.
>>Language support
Languages that formally support the module concept include `F33f`_`[Ada`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ada_(programming_language)]`_`f, `F33f`_`[ALGOL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ALGOL]`_`f, `F33f`_`[BlitzMax`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=BlitzMax]`_`f, `F33f`_`[C++`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C++]`_`f, `F33f`_`[C#`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_Sharp_(programming_language)]`_`f, `F33f`_`[Clojure`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Clojure]`_`f, `F33f`_`[COBOL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=COBOL]`_`f, `F33f`_`[Common Lisp`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Common_Lisp]`_`f, `F33f`_`[D`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=D_(programming_language)]`_`f, `F33f`_`[Dart`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dart_(programming_language)]`_`f, eC, `F33f`_`[Erlang`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Erlang_(programming_language)]`_`f, `F33f`_`[Elixir`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Elixir_(programming_language)]`_`f, `F33f`_`[Elm`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Elm_(programming_language)]`_`f, `F33f`_`[F`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=F_(programming_language)]`_`f, `F33f`_`[F#`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=F_Sharp_(programming_language)]`_`f, `F33f`_`[Fortran`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fortran]`_`f, `F33f`_`[Go`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Go_(programming_language)]`_`f, `F33f`_`[Haskell`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Haskell]`_`f, `F33f`_`[IBM/360`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=IBM/360]`_`f `F33f`_`[Assembler`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=IBM_Basic_assembly_language_and_successors]`_`f, `F33f`_`[Control Language`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Control_Language]`_`f (CL), `F33f`_`[IBM RPG`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=IBM_RPG]`_`f, `F33f`_`[Java`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_(programming_language)]`_`f, `F33f`_`[Julia`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Julia_(programming_language)]`_`f, `F33f`_`[MATLAB`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MATLAB]`_`f, `F33f`_`[ML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ML_(programming_language)]`_`f, `F33f`_`[Modula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula]`_`f, `F33f`_`[Modula-2`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula-2]`_`f, `F33f`_`[Modula-3`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula-3]`_`f, Morpho, `F33f`_`[NEWP`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=NEWP]`_`f, `F33f`_`[Oberon`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Oberon_(programming_language)]`_`f, `F33f`_`[Oberon-2`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Oberon-2]`_`f, `F33f`_`[Objective-C`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Objective-C]`_`f, `F33f`_`[OCaml`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=OCaml]`_`f, several `F33f`_`[Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Pascal_(programming_language)]`_`f derivatives (`F33f`_`[Component Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Component_Pascal]`_`f, `F33f`_`[Object Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Object_Pascal]`_`f, `F33f`_`[Turbo Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Turbo_Pascal]`_`f, `F33f`_`[UCSD Pascal`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=UCSD_Pascal]`_`f), `F33f`_`[Perl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Perl]`_`f, `F33f`_`[PHP`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=PHP]`_`f, `F33f`_`[PL/I`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=PL/I]`_`f, `F33f`_`[PureBasic`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=PureBasic]`_`f, `F33f`_`[Python`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Python_(programming_language)]`_`f, `F33f`_`[R`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=R_(programming_language)]`_`f, `F33f`_`[Ruby`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ruby_(programming_language)]`_`f,`:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f] `F33f`_`[Rust`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Rust_(programming_language)]`_`f, `F33f`_`[JavaScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=JavaScript]`_`f,`:cite-ref-4[`F5bf`_`[4`#cite-note-4]`_`f] `F33f`_`[Visual Basic (.NET)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Visual_Basic_(.NET)]`_`f and WebDNA.
In the Java programming language, the term "package" is used for the analog of modules in the JLS;`:cite-ref-5[`F5bf`_`[5`#cite-note-5]`_`f] — see `F33f`_`[Java package`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_package]`_`f. "`F33f`_`[Modules`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_Module_System]`_`f", a kind of set of packages, were introduced in `F33f`_`[Java 9`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_9]`_`f as part of Project Jigsaw; these were earlier called "superpackages" were planned for Java 7.
Conspicuous examples of languages that lack support for modules are `F33f`_`[C`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_(programming_language)]`_`f and have been `F33f`_`[C++`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C++]`_`f and Pascal in their original form, `F33f`_`[C`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C_(programming_language)]`_`f and `F33f`_`[C++`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C++]`_`f do, however, allow separate compilation and declarative interfaces to be specified using `F33f`_`[header files`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Header_file]`_`f. Modules were added to Objective-C in `F33f`_`[iOS 7`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=IOS_7]`_`f (2013); to C++ with `F33f`_`[C++20`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=C++20]`_`f,`:cite-ref-6[`F5bf`_`[6`#cite-note-6]`_`f] and Pascal was superseded by `F33f`_`[Modula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modula]`_`f and `F33f`_`[Oberon`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Oberon_(programming_language)]`_`f, which included modules from the start, and various derivatives that included modules. `F33f`_`[JavaScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=JavaScript]`_`f has had native modules since `F33f`_`[ECMAScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ECMAScript]`_`f 2015. `F33f`_`[C++ modules`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modules_(C++)]`_`f have allowed backwards compatibility with headers (with "header units"). Dialects of C allow for modules, for example `F33f`_`[Clang`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Clang]`_`f supports `F33f`_`[modules for the C language`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modules_(C++)]`_`f,`:cite-ref-7[`F5bf`_`[7`#cite-note-7]`_`f] though the syntax and semantics of Clang C modules differ from C++ modules significantly.
Modular programming can be performed even where the programming language lacks explicit syntactic features to support named modules, like, for example, in C. This is done by using existing language features, together with, for example, `F33f`_`[coding conventions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Coding_conventions]`_`f, `F33f`_`[programming idioms`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Programming_idioms]`_`f and the physical code structure. `F33f`_`[IBM i`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=IBM_i]`_`f also uses modules when programming in the `F33f`_`[Integrated Language Environment`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Integrated_Language_Environment]`_`f (ILE).
>>Key aspects
With modular programming, `F33f`_`[concerns are separated`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Separation_of_concerns]`_`f such that modules perform logically discrete functions, interacting through well-defined interfaces. Often modules form a `F33f`_`[directed acyclic graph`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Directed_acyclic_graph]`_`f (DAG); in this case a cyclic dependency between modules is seen as indicating that these should be a single module. In the case where modules do form a DAG they can be arranged as a hierarchy, where the lowest-level modules are independent, depending on no other modules, and higher-level modules depend on lower-level ones. A particular program or library is a top-level module of its own hierarchy, but can in turn be seen as a lower-level module of a higher-level program, library, or system.
When creating a modular system, instead of creating a monolithic application (where the smallest component is the whole), several smaller modules are written separately so when they are composed together, they construct the executable application program. Typically, these are also `F33f`_`[compiled`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compiler]`_`f separately, via separate compilation, and then linked by a `F33f`_`[linker`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Linker_(computing)]`_`f. A `F33f`_`[just-in-time compiler`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Just-in-time_compilation]`_`f may perform some of this construction "on-the-fly" at `F33f`_`[run time`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Run_time_(program_lifecycle_phase)]`_`f.
These independent functions are commonly classified as either program control functions or specific task functions. Program control functions are designed to work for one program. Specific task functions are closely prepared to be applicable for various programs.
This makes modular designed systems, if built correctly, far more reusable than a traditional monolithic design, since all (or many) of these modules may then be reused (without change) in other projects. This also facilitates the "breaking down" of projects into several smaller projects. Theoretically, a modularized software project will be more easily assembled by large teams, since no team members are creating the whole system, or even need to know about the system as a whole. They can focus just on the assigned smaller task.
>>See also
• `F33f`_`[Architecture description language`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Architecture_description_language]`_`f – Standardized language on architecture description
• `F33f`_`[Cohesion (computer science)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cohesion_(computer_science)]`_`f – Degree to which elements within a module belong together
• `F33f`_`[Component-based software engineering`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Component-based_software_engineering]`_`f – Engineering focused on building software from reusable components
• `F33f`_`[Conway's law`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Conway's_law]`_`f – Adage linking organization and system structure
• `F33f`_`[Coupling (computer science)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Coupling_(computer_science)]`_`f – Degree of interdependence between software modulesPages displaying short descriptions of redirect targets
• `F33f`_`[Cross-cutting concern`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cross-cutting_concern]`_`f – Concept in aspect-oriented software development
• `F33f`_`[David Parnas`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=David_Parnas]`_`f – Canadian software engineer
• `F33f`_`[Information hiding`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Information_hiding]`_`f – Principle of computer program design
• `F33f`_`[Library (computing)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Library_(computing)]`_`f – Collection of resources used to develop a computer program
• `F33f`_`[List of system quality attributes`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=List_of_system_quality_attributes]`_`f – Non-functional requirements for system evaluation
• `F33f`_`[Modular design`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Modular_design]`_`f – Design approach
• `F33f`_`[Plug-in (computing)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Plug-in_(computing)]`_`f – Software component that extends the functionality of existing software
• `F33f`_`[Snippet (programming)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Snippet_(programming)]`_`f – Small region of re-usable source code, machine code, or text
• `F33f`_`[Structured analysis`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Structured_analysis]`_`f – Software engineering method
• `F33f`_`[Structured programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Structured_programming]`_`f – Programming paradigm based on control flow
>>References
`:cite-note-1`!1.`! `F0af`_`[↑`#cite-ref-1]`_`f `:citereflindsey1976`a`F33f`_`[Lindsey, Charles H.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Charles_H._Lindsey]`_`f (Feb 1976). "Proposal for a Modules Facility in ALGOL 68" (PDF). `*ALGOL Bulletin`* (39): 20–29. Archived from the original (PDF) on 2016-03-03. Retrieved 2014-12-01.
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f `:citerefdavid-macqueen1984`aDavid MacQueen (August 1984). "Modules for Standard ML". `*LFP '84 Proceedings of the 1984 ACM Symposium on LISP and functional programming`*. pp. 198–207. `F33f`_`[doi`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Doi_(identifier)]`_`f:10.1145/800055.802036.
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f "class Module - Documentation for Ruby 3.5".
`:cite-note-4`!4.`! `F0af`_`[↑`#cite-ref-4]`_`f ECMAScript® 2015 Language Specification, 15.2 Modules
`:cite-note-5`!5.`! `F0af`_`[↑`#cite-ref-5]`_`f James Gosling, Bill Joy, Guy Steele, Gilad Bracha, `*The Java Language Specification, Third Edition`*, `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 0-321-24678-0, 2005. In the Introduction, it is stated "Chapter 7 describes the structure of a program, which is organized into packages similar to the modules of Modula." The word "module" has no special meaning in Java.
`:cite-note-6`!6.`! `F0af`_`[↑`#cite-ref-6]`_`f "N4720: Working Draft, Extensions to C++ for Modules" (PDF).
`:cite-note-7`!7.`! `F0af`_`[↑`#cite-ref-7]`_`f "Modules". `*clang.llvm.org`*.
>>External links
• How To Decompose a System into Modules
• SMC Platform
`c`F0af`_`[↑ Back to top`#top]`_`f`a